package com.hanamaki.study.demo;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.edge.EdgeDriver;

public class EdgeDriverTest {

    public static void main(String[] args) {

        /* 1. 注册驱动的位置  */
        System.setProperty("webdriver.edge.driver", "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedgedriver.exe");

        /* 2, 注册驱动 */
        EdgeDriver driver = new EdgeDriver();

        /* 打开网址测试  */
        driver.get("https://www.baidu.com");
    }

}
